package com.yao.wechat.entity;


import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;

/**
* 微信公众号表
*
* @author autoCode
* @version 1.0.0-SNAPSHOT
* @date 2020-07-23
*/
@Data
public class PublicEntity implements Serializable {

private static final long serialVersionUID = 1L;

    /**
    * 自增主键
    */
    @TableId(value = "`id`", type = IdType.AUTO)
    private Integer id;
    /**
    * 有效状态0-有效
    */
    @TableField(value = "`status`", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_EMPTY)
    private Integer status;
    /**
    * 公众号名
    */
    @TableField(value = "`name`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String name;
    /**
    * 原始id
    */
    @TableField(value = "`originId`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String originId;
    /**
    * appid
    */
    @TableField(value = "`appId`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String appId;
    /**
    * appsecret
    */
    @TableField(value = "`appSecret`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String appSecret;
    /**
    * access_token
    */
    @TableField(value = "`token`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private String token;
    /**
    * 过期时间
    */
    @TableField(value = "`expTime`", updateStrategy = FieldStrategy.NOT_EMPTY)
    private LocalDateTime expTime;
    /**
    * 创建时间
    */
    @TableField(value = "`createTime`", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
    * 更新时间
    */
    @TableField(value = "`updateTime`", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}